import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import {Observable} from "rxjs/Observable";

/*
  Generated class for the HomeProvider provider.

  See https://angular.io/guide/dependency-injection for more info on providers
  and Angular DI.
*/


export interface Home{
    ProfessionalCleaning: string,
    BasicCleaning:string,
    FamilyRepair: string,
    ApplianceCleaning: string,
    LaundryService: string,
    HerNanny: string,
    AllService:string,
    PeriodicCleaning: string,
    NewForest: string,
    Nanny: string,
    AirCleaning: string,
    LampblackCleaning: string
}

@Injectable()
export class HomeProvider {
    dataUrl = 'assets/data/home.json';
  constructor(public http: HttpClient) {
    console.log('Hello HomeProvider Provider');
  }
    getData(): Observable<any> {
        return this.http.get(this.dataUrl).map((data) => {
            console.log(data);
            return data;
        });
    }

}
